package com.coco.model;

import java.util.Date;

public class News {

	private String nid;
	private String title;
	private String content;
	private Date publishtime;
	private Date updatetime;
	private String publishby;
	public String getNid() {
	
		return nid;
	}
	public void setNid(String nid) {
	
		this.nid = nid;
	}
	public String getTitle() {
	
		return title;
	}
	public void setTitle(String title) {
	
		this.title = title;
	}
	public String getContent() {
	
		return content;
	}
	public void setContent(String content) {
	
		this.content = content;
	}
	public Date getPublishtime() {
	
		return publishtime;
	}
	public void setPublishtime(Date publishtime) {
	
		this.publishtime = publishtime;
	}
	public Date getUpdatetime() {
	
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
	
		this.updatetime = updatetime;
	}
	public String getPublishby() {
	
		return publishby;
	}
	public void setPublishby(String publishby) {
	
		this.publishby = publishby;
	}
	public News() {
		
		super();
		 
			
	}
	public News(String nid, String title, String content, Date publishtime, Date updatetime, String publishby) {
		super();
		this.nid = nid;
		this.title = title;
		this.content = content;
		this.publishtime = publishtime;
		this.updatetime = updatetime;
		this.publishby = publishby;
	}
	@Override
	public String toString() {
		return "News [nid=" + nid + ", title=" + title + ", content=" + content + ", publishtime=" + publishtime
				+ ", updatetime=" + updatetime + ", publishby=" + publishby + "]";
	}
	
	
}

	